//***Save this file to your ZBrush /ZStartup/Macros/Misc folder and press Macro>Reload All Macros
// ZBrush Macro for Smart Proportional Subdivision - adapted by Marcus Civis from Svengali's plugin of Sept. 2005
// Originally, a marvelous tool for a controlled subdivide conceived and posted by Marsyas...
// presented in the ZBCentral thread at:  http://www.zbrushcentral.com/zbc/showthread.php?t=26639


[IButton,???,"Smart proportional subdivision of model",
  [If, [IExists,Tool:Geometry:Reconstruct Subdiv] == 1,
    [IFreeze,
  		[ISet,Tool:Geometry:SDiv,[IGetMax,Tool:Geometry:SDiv]]//must be at highest subD
  		[IUnPress,Tool:Geometry:Smt]
  		[IPress,Tool:Geometry:Divide]
  		[IPress,Tool:Geometry:Lower Res]
  		[IPress,Tool:Geometry:Cage]
  		[IPress,Tool:Geometry:Del Higher]
  		[IPress,Tool:Geometry:Smt]
  		[IPress,Tool:Geometry:Divide]
  	]		
  ]	
]//end of macro